/**
 * Project Name:九色鹿
 * File Name:HiGoException.java
 * Package Name:com.fxp.project.jiuselu.commons.exception
 * Date:2021年03月12日 22:04
 * Copyright (c) 2021, Jason.Wang All Rights Reserved.
 */
package com.fxp.project.jiuselu.commons.exceptions;


import com.fxp.project.jiuselu.commons.code.RetCode;

/**
 * ClassName:JiuLuException<br/>
 * Function: 自定义程序异常<br/>
 * Date:2021年03月12日 22:04<br/>
 *
 * @author Jason.Wang
 * @version 1.0.0.0
 * @see
 * @since JDK1.8
 */
public class JiuLuException extends RuntimeException {

    private RetCode retCode;

    public JiuLuException(RetCode retCode) {
        super(retCode.getMessage());
        this.retCode = retCode;
    }

    public JiuLuException(int code, String msg) {
        super(msg);
        this.retCode = new RetCode(code, msg);
    }

    public RetCode getRetCode() {
        return this.retCode;
    }
}
